package com.piggy.logi.sys.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.piggy.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 短驳车次信息视图对象 logi_drayage
 *
 * @author piggy
 * @date 2023-09-18
 */
@Data
@Accessors(chain = true)
@ApiModel("短驳车次信息视图对象")
public class LogiDrayageVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Excel(name = "短驳主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("短驳主键")
    private Long drayageId;

    /**
     * 部门id
     */
    @Excel(name = "短驳部门id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("短驳部门id")
    private Long deptId;

    /**
     * 短驳单号 YYYYMMDD+序号
     */
    @Excel(name = "短驳单号 YYYYMMDD+序号")
    @ApiModelProperty("短驳单号 YYYYMMDD+序号")
    private String drayageNo;

    /** 计费方式 */
    @ApiModelProperty("短驳计费方式")
    private String feeMode;

    /** 运输费 */
    @ApiModelProperty("短驳运输费")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal frt;

    /** 流程状态 */
    @ApiModelProperty("短驳流程状态")
    private Integer drayageStatus;

    /**
     * 司机id
     */
    @Excel(name = "短驳司机id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("短驳司机id")
    private Long driverId;

    /**
     * 司机json对象
     */
    @Excel(name = "短驳司机json对象")
    @ApiModelProperty("司机json对象")
    private String driverJson;

    /**
     * 车辆id
     */
    @Excel(name = "短驳车辆id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("短驳车辆id")
    private Long carId;

    /**
     * 车辆json对象
     */
    @Excel(name = "短驳车辆json对象")
    @ApiModelProperty("车辆json对象")
    private String carJson;

    /** 出发网点 */
    @ApiModelProperty("短驳出发网点")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long depDeptId;

    /** 到达网点 */
    @ApiModelProperty("短驳到达网点")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long desDeptId;

    /**
     * 发车时间
     */
    @Excel(name = "短驳发车时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("短驳发车时间")
    private Date departTime;

    /**
     * 到达时间
     */
    @Excel(name = "短驳到达时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("短驳到达时间")
    private Date arriveTime;

    /**
     * 创建者
     */
    @Excel(name = "短驳创建者")
    @ApiModelProperty("短驳创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @Excel(name = "短驳创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("短驳创建时间")
    private Date createTime;

    /**
     * 更新者
     */
    @Excel(name = "短驳更新者")
    @ApiModelProperty("短驳更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @Excel(name = "短驳更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("短驳更新时间")
    private Date updateTime;

    /**
     * 备注
     */
    @Excel(name = "短驳备注")
    @ApiModelProperty("短驳备注")
    private String remark;


}
